{{csrf_field()}}
<input type="hidden" name="form_token" value="{{ str_random(40) }}"/>
<div class="layui-form-item">
    <label for="" class="layui-form-label">搜索词</label>
    <div class="layui-input-block">
        <input class="layui-input" type="text" name="search_word" lay-verify="search_word" value="{{$recommend->search_word??old('search_word')}}" placeholder="请输入搜索词">
    </div>
</div>
<div class="layui-form-item">
    <label for="" class="layui-form-label">显示推荐词</label>
    <div class="layui-input-block">
        <input class="layui-input" type="text" name="recommend_word" lay-verify="recommend_word" value="{{$recommend->recommend_word??old('recommend_word')}}" placeholder="请输入推荐词">
    </div>
</div>
<div class="layui-form-item">
    <label for="" class="layui-form-label">权重</label>
    <div class="layui-input-block">
        <input class="layui-input" type="number" name="weight" lay-verify="weight" value="{{$recommend->weight??old('weight')}}" placeholder="请输入权重">
    </div>
</div>
<div class="layui-form-item">
    <label for="" class="layui-form-label">开始时间</label>
    <div class="layui-input-block">
        <input class="layui-input" type="text" name="start_time" id="start_time" lay-verify="start_time"  value="{{$recommend->start_time??old('start_time')}}" placeholder="请选择开始时间">
    </div>
</div>
<div class="layui-form-item">
    <label for="" class="layui-form-label">结束时间</label>
    <div class="layui-input-block">
        <input class="layui-input" type="text" name="end_time" id="end_time"  lay-verify="end_time" value="{{$recommend->end_time??old('end_time')}}" placeholder="请选择结束时间">
    </div>
</div>
<div class="layui-form-item">
    <label for="" class="layui-form-label">备注</label>
    <div class="layui-input-block">
        <input class="layui-input" type="text" name="remark"  value="{{$recommend->remark??old('remark')}}" />
    </div>
</div>
<div class="layui-form-item">
    <div class="layui-input-block">
        <button type="submit" class="layui-btn" lay-submit="" lay-filter="filter">确 认</button>
        <a href="{{route('admin.recommend')}}" class="layui-btn" >返 回</a>
    </div>
</div>